import router from "@/apps/client/router.js";


export async function toPage(url) {
    try {
        await router.push({ name: url });
    } catch (err) {
        console.error('导航失败:', err);
    }
}